export function unixTimeStemp(timeStemp) {
	const newDate = new Date(timeStemp);
	function coverZero(num) {
		return num <= 9 ? '0' + num : num;
	}
	return (
		newDate.getFullYear() +
		'-' +
		coverZero(newDate.getMonth() + 1) +
		'-' +
		coverZero(newDate.getDate()) +
		' ' +
		coverZero(newDate.getHours()) +
		':' +
		coverZero(newDate.getMinutes()) +
		':' +
		coverZero(newDate.getSeconds())
	);
}
